<%@page import="store.pay.icbc.IcbcB2cPayObject"%>
<%@page import="store.pay.ConfigObjectHelper"%>
<%@page import="store.pay.icbc.IcbcB2cConfigObject"%>
<%@page import="store.DataStore"%>
<%@page import="store.Order"%>
<%@page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
String path = request.getScheme() + "://" + request.getServerName() + request.getContextPath();
String ppath = request.getScheme() + "://" + request.getServerName()+":" + request.getServerPort() + request.getContextPath();

String orderid =request.getParameter("orderid");
String amount=request.getParameter("amount");
String goodsID=request.getParameter("goodsID");
String goodsName=request.getParameter("goodsName");
String goodsNum=request.getParameter("goodsNum");

Order order = new Order();
order.setOrderid(orderid);
order.setAmount(amount);
order.setGoodsID(goodsID);
order.setGoodsName(goodsName);
order.setGoodsNum(goodsNum);

DataStore ds = new DataStore();
ds.addOrder(order);

response.sendRedirect(ppath+"/pay/orderlist.jsp");
return ;
//request.getRequestDispatcher("/pay/orderlist.jsp").forward(request, response);

%>